import request from '@/utils/request'

// 查询会员注销申请列表
export function listMemberoff(query) {
  return request({
    url: '/member/memberoff/list',
    method: 'get',
    params: query
  })
}

// 查询会员注销申请详细
export function getMemberoff(id) {
  return request({
    url: '/member/memberoff/' + id,
    method: 'get'
  })
}

// 新增会员注销申请
export function addMemberoff(data) {
  return request({
    url: '/member/memberoff',
    method: 'post',
    data: data
  })
}

// 修改会员注销申请
export function updateMemberoff(data) {
  return request({
    url: '/member/memberoff',
    method: 'put',
    data: data
  })
}

// 删除会员注销申请
export function delMemberoff(id) {
  return request({
    url: '/member/memberoff/' + id,
    method: 'delete'
  })
}

// 导出会员注销申请
export function exportMemberoff(query) {
  return request({
    url: '/member/memberoff/export',
    method: 'get',
    params: query
  })
}